//
//  CedarAlertView.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/10/10.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger,CedarAlertButtonStyleType) {
    CedarAlertButtonStyleTypeGray = 0, //灰色
    CedarAlertButtonStyleTypeMaster = 1, //主色
    CedarAlertButtonStyleTypeGradient = 2, //渐变
};


@interface CedarAlertButtonStyle : NSObject

@property(nonatomic,copy) NSString *title;
@property(nonatomic,assign) CedarAlertButtonStyleType buttonType;
@property (nonatomic,copy) void (^clickBlock)(void);

@end



@interface CedarAlertView : UIView


- (instancetype)initWithTitle:(NSString *)title content:(NSString *)content  buttonStyle:(CedarAlertButtonStyle *)style;
- (instancetype)initWithTitle:(NSString *)title content:(NSString *)content  buttonStyleArray:(NSArray<CedarAlertButtonStyle *> *)style;
- (instancetype)initWithTitle:(NSString *)title
                      content:(NSString *)content
               lineHeadIndent:(CGFloat)value
                  buttonStyle:(CedarAlertButtonStyle *)style;


- (void)configueUITextViewAttributes:(void (^)(UITextView *textView))textViewBlock;

@end

NS_ASSUME_NONNULL_END
